PIZZA Current compiler version: 0.39d
A substantial companion to Java
Frequently Asked Questions (with Answers)
The Pizza language

Contents
Home
Mirrors
FAQ index

Distribution
Support
Documents

Applications
Users

People
Links

How can I define a named
first-class function?
You can define a mutable variable of function type as follows:

(String)->int len = fun (String s)->int {return s.length(); };
Alternatively, you can also define a method and use the method's name without the (...) parentheses.

Would it be possible to make the case-classes into fully functional inner classes, with different initializers and so forth?
This idea is somewhat at odds with the intended ``closed-sum'' semantics of this feature. A master's student,
Matthius Zenger, is currently looking into extensible algebraic data types for Pizza; we will post his final report when it becomes available (although it will be in German), and will certainly notify the announcement list of any new extensions in the compiler.

"private protected" does not work.
The private protected modifier has been abolished in Java 1.0. javac still supports it, but other compilers and the language specification don't. We suggest using default visibility instead.


Page design & maintenance: John Maraist.
Answers by Martin Odersky, Christian Kemper, Enno Runne and John Maraist.
Java is a trademark of Sun Microsystems.
Comments and bug reports to the Pizza Group, pizza@cis.unisa.edu.au.
All software and documents on the Pizza site are © Copyright 1996, 1997 by the respective authors (as attributed on each; terms for redistribution are available).